package com.zbhk.qc.util;


import com.zbhk.qc.dto.ResultVO;
import com.zbhk.qc.enums.ResultEmun;

/**
* @Description:
* @Param:
* @return:
* @Author: zhulenan
* @Date: 2020/6/3
*/
public class ResultVOUtil {

    public static ResultVO success(Object object) {
        ResultVO resultVO = new ResultVO();
        resultVO.setCode(ResultEmun.SUCCESS.getCode());
        resultVO.setMsg(ResultEmun.SUCCESS.getMessage());
        resultVO.setData(object);
        return resultVO;
    }

    public static ResultVO error(Object object) {
        ResultVO resultVO = new ResultVO();
        resultVO.setCode(ResultEmun.ERROR.getCode());
        resultVO.setMsg(ResultEmun.ERROR.getMessage());
        resultVO.setData(object);
        return resultVO;
    }




}
